package com.collectplus.express.model;

import java.io.Serializable;

import com.collectplus.express.R;

import droid.frame.App;

/**
 * 用户信息
 * 
 * @author coffee<br>
 *         2015-6-18下午4:29:04
 */
public class UserBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -527978974819578455L;

	private int id;
	private String imagePath;
	private String name;
	private String phone;
	private String address;
	private String alias;// 极光推送 alias
	private String qrCodeUrl;//用户二维码

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getImagePath() {
		return imagePath;
	}

	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	public String getName() {
		if (name == null || name.trim().length() == 0) {
			return App.getContext().getResources().getString(R.string.guoer_sender);
		} else {
			return name;
		}
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public String getQrCodeUrl() {
		return qrCodeUrl;
	}

	public void setQrCodeUrl(String qrCodeUrl) {
		this.qrCodeUrl = qrCodeUrl;
	}
}
